<?php

namespace App\HttpController\Admin;

use App\Logic\Account\CashoutService;

/**
 * Cashout 提现
 */
class Cashout extends BaseController {
    /**列表*/
    public function index()
    {
        $service = new CashoutService();
        $result = $service->getLists($this->request());
        return $this->writeJsonByOutput($result);
    }
    /**字典*/
    public function dict()
    {
        $service = new CashoutService();
        $result = $service->getDict($this->request());
        return $this->writeJsonByOutput($result);
    }
    /**提现到账*/
    public function finish()
    {
        $service = new CashoutService();
        $data = $this->getJson();
        $result = $service->finish($data);
        return $this->writeJsonByOutput($result);
    }
    /**取消提现*/
    public function cancel()
    {
        $service = new CashoutService();
        $data = $this->getJson();
        $result = $service->cancel($data);
        return $this->writeJsonByOutput($result);
    }

}
